package com.wangxl.springbootdemocore.exceptions;

import lombok.Data;

/**
 * @ClassName:BaseException
 * @Description:
 * @Author : Wangxl
 * @Email：475524154@qq.com
 * @Date:2018/12/7 000718:16
 * @Version:1.0
 **/
@Data
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = -5491686748106397503L;

    protected String code;

    public BaseException(){

    }
    public BaseException(String message){
        super(message);
    }
    public BaseException(String code ,String message){
        super(message);
        this.code = code;
    }
}
